<?php get_header(); ?>
<script type="text/javascript">
    function mycarousel_initCallback(carousel)
    {
        // Disable autoscrolling if the user clicks the prev or next button.
        carousel.buttonNext.bind('click', function() {
            carousel.startAuto(0);
        });

        carousel.buttonPrev.bind('click', function() {
            carousel.startAuto(0);
        });

        // Pause autoscrolling if the user moves with the cursor over the clip.
        carousel.clip.hover(function() {
            carousel.stopAuto();
        }, function() {
            carousel.startAuto();
        });
    };

    jQuery(document).ready(function($){
        $('.slideshow').cycle({
            fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
        });
        //setTimeout(function(){$(".greet_block").fadeOut(1000)}, 6000);
        jQuery('#favorite-list').fadeIn();
        jQuery('#jcarousel-list').jcarousel({
            auto: 2.5,
            wrap: 'last',
            initCallback: mycarousel_initCallback,
            animation:2500
        });
    });
</script>
<div id="index-main" class="group">
<div id="home-col-left">
    <img id="ino-different" title="ino-different" src="<?php bloginfo('template_url'); ?>/images/ino-different.gif" alt="" />
    <div id="home-desc">
        <h3><span class="en-title">ABOUT INO</span> / 言诺设计</h3>        <p>
        自2005年成立以来，言诺从最初的室内设计工作室，逐步发展为今天的全方位设计机构，服务领域涵括建筑设计、规划设计、室内设计、酒店
        发展咨询顾问等。<a href="/?page_id=248">【更多】</a>
    </p>
        <h3><span class="en-title">INO NEWS</span> / 言诺动态</h3>
        <div class="slideshow">
            <?php
                    global $post_cat59;
                    $myposts = get_posts('numberposts=50&category=59');
                    foreach($myposts as $post) :
                    ?>
            <p>
                <?php echo mb_strimwidth(get_the_title(),0,60,"…"); ?>
                <a target="_blank" href="<?php the_permalink(); ?>">
                    【更多】
                </a>
            </p>
            <?php endforeach; ?>
        </div>
    </div>
</div>

<div id="home-silder">
    <?php echo get_royalslider(1); ?>
</div>
<div id="greet_block">
    <!--div class="greet_block">
        <div class="greet_text">
            <h1>公司搬家了</h1>
            <h2>尊敬的新老客户：</h2>
            <p>言诺新居落成，新办公室假座<span>广州市天河区东莞庄一横路133号花城学院B栋2楼全层。</span> 欢迎新老朋友移驾光临。</p>
            <div style="clear:both"></div>
        </div>
    </div-->
</div>
</div>
        <?php get_template_part( 'favorite-list' );?>
        </div>
        <?php get_footer(); ?>
